<p><?php echo $this->text_historyorderbilldetail ?> - <?php echo $this->userBill["bill_code"]?></p>
<div class="line"><hr></div>

<p style="width:100%;background-color:silver;padding:8px;">1.<?php echo $this->text_customerinfo ?></p>
<div style="width:100%;height:20px; clear:both">&nbsp;</div>
<table style="width:100%; font-size:13px;" border="0">
	<tr>
		<td align="right" style="width:150px"><?php echo $this->text_name ?>:</td>
		<td style="padding-left:20px;"><?php echo $this->userInfo["user_name"] ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_email ?>:</td>
		<td style="padding-left:20px;"><?php echo $this->userInfo["email"] ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_phone ?>:</td>
		<td style="padding-left:20px;"><?php echo $this->userInfo["phone"] ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_address ?>:</td>
		<td style="padding-left:20px;"><?php echo $this->userInfo["address"] ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_yahoo ?>:</td>
		<td style="padding-left:20px;"><?php echo $this->userInfo["yahoo"] ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_skype ?>:</td>
		<td style="padding-left:20px;"><?php echo $this->userInfo["skype"] ?></td>
	</tr>
</table>

<br>
<p style="width:100%;background-color:silver;padding:8px;">2.<?php echo $this->text_billdetail ?></p>
<div style="width:100%;height:20px; clear:both">&nbsp;</div>
<table style="width:100%; font-size:13px;" border="0">
	<tr>
		<th style="border:1px black solid; background-color:#DEDEDE; padding:8px;font-size:15px;"><?php echo $this->text_no ?></th>
		<th style="border:1px black solid; background-color:#DEDEDE; padding:8px;font-size:15px;"><?php echo $this->text_productname ?></th>
		<th style="border:1px black solid; background-color:#DEDEDE; padding:8px;font-size:15px;"><?php echo $this->text_quantity ?></th>
		<th style="border:1px black solid; background-color:#DEDEDE; padding:8px;font-size:15px;"><?php echo $this->text_price ?></th>
		<th style="border:1px black solid; background-color:#DEDEDE; padding:8px;font-size:15px;"><?php echo $this->text_totalprice ?></th>
	</tr>
	<!--loop-->
	<?php $no=1; ?>
	<?php if(count($this->userBillDetails)>0) { foreach($this->userBillDetails as $userBillDetail ) {?>
	<tr>
		<td align="center" style="background-color:#E5E5E5; padding:5px;"><?php echo $no;?></td>
		<?php if($userBillDetail["show_link"]==false) {?>
		<td align="center" style="background-color:#E5E5E5; padding:5px;"><?php echo $userBillDetail["thing_title"];?></td>
		<?php } else {?>
		<td align="center" style="background-color:#E5E5E5; padding:5px;"><a href="/index/detail?id=<?php echo $userBillDetail["thing_id"] ?>"><?php echo $userBillDetail["thing_title"];?></a></td>
		<?php } ?>
		<td align="center" style="background-color:#E5E5E5; padding:5px;"><?php echo $userBillDetail["quantity"];?></td>
		<td align="center" style="background-color:#E5E5E5; padding:5px;">$<?php echo number_format($userBillDetail["price"]);?></td>
		<td align="center" style="background-color:#E5E5E5; padding:5px;">$<?php echo number_format($userBillDetail["total_price"]);?></td>
	</tr>
		<?php $no++; ?>
	<?php } } else {?>
	<tr>
		<td colspan="5" align="center" style="background-color:#E5E5E5; padding:5px;"><?php echo $this->text_nodetailfound ?></td>
	</tr>
	<?php }?>
	<!--end loop-->
	<tr>
		<td style="border:1px black solid; background-color:#DEDEDE; font-weight:bold; padding:8px;" align="right" colspan="4"><?php echo $this->text_totalbillprice ?>:</td>
		<td style="border:1px black solid; background-color:#DEDEDE; font-weight:bold;padding:8px;" align="center">$<?php echo number_format($this->userBill["total_bill_price"]) ?></td>
	</tr>
</table>

<br>
<p style="width:100%;background-color:silver;padding:8px;">3.<?php echo $this->text_shippingdetail ?></p>
<div style="width:100%;height:20px; clear:both">&nbsp;</div>
<table style="width:100%; font-size:13px;" border="0">
	<tr>
		<td align="right" style="width:150px"><?php echo $this->text_shippingmethod ?></td>
		<td style="padding-left:20px;"><?php if($this->userShippingMethod["shipping_name"]!=null) echo $this->userShippingMethod["shipping_name"]; else echo ""; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_shippingcost ?></td>
		<td style="padding-left:20px;"><?php  if($this->userShippingMethod["cost"]!=null) echo $this->userShippingMethod["cost"]; else echo "0"; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_receiver ?></td>
		<td style="padding-left:20px;"><?php if($this->userShippingDetail["user_receive"]!=null) echo $this->userShippingDetail["user_receive"]; else echo ""; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_phone ?>:</td>
		<td style="padding-left:20px;"><?php if($this->userShippingDetail["phone"]!=null) echo $this->userShippingDetail["phone"]; else echo ""; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_address ?>:</td>
		<td style="padding-left:20px;"><?php if($this->userShippingDetail["address"]!=null) echo $this->userShippingDetail["address"]; else echo ""; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_email ?>:</td>
		<td style="padding-left:20px;"><?php if($this->userShippingDetail["email"]!=null) echo $this->userShippingDetail["email"]; else echo ""; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_yahoo ?>:</td>
		<td style="padding-left:20px;"><?php if($this->userShippingDetail["yahoo"]!=null) echo $this->userShippingDetail["yahoo"]; else echo ""; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_skype ?>:</td>
		<td style="padding-left:20px;"><?php if($this->userShippingDetail["skype"]!=null) echo $this->userShippingDetail["skype"]; else echo ""; ?></td>
	</tr>
	<tr>
		<td align="right"><?php echo $this->text_notes ?></td>
		<td style="padding-left:20px;"><?php if($this->userShippingDetail["note"]!=null) echo $this->userShippingDetail["note"]; else echo ""; ?></td>
	</tr>
</table>

<br>
<p style="width:100%;background-color:silver;padding:8px;">4. <?php echo $this->text_payment ?>&nbsp;<?php echo $this->userPayment["payment_name"] ?></p>
<div style="width:100%;height:20px; clear:both">&nbsp;</div>
<a href="/account/historyorder" style="font-size:13px; text-decoration:underline; color:blue;">&lt;&lt;&nbsp;<?php echo $this->text_historyorderlink ?></a>
<a href="/account/" style="font-size:13px; text-decoration:underline; color:blue;"><?php echo $this->text_profilelink ?></a>